function  ajaxget($url){
	$.get($url, null, function(result){
		if(result.msg!= ""){
			alert(result.msg );
		}
		if(result.url != "" && result.second > 0){
			setTimeout("window.location.href ='"+result.url+"';", result.second)
		}else{
			window.location = window.location.href;
		}
	}, "json");
}

function ajaxgetform(form) {
	var url = form.get(0).action;
	var data = form.serialize();
	$.get(url, data, function(result) {
		if (result.msg != "") {
			alert(result.msg);
		}
		if (result.url != "" && result.second > 0) {
			setTimeout("window.location.href ='" + result.url + "';",
					result.second)
		} else {
			window.location = window.location.href;
		}
	}, "json");
}
